
import { defineStore } from 'pinia'

export const useCounterOPStore = defineStore('counterOP', {
  state:()=>{
    return{
      opcount:1 as number
    }
  },
  getters:{
    doublecountop:(state)=>{
    return state.opcount*2
  }
  },
  actions:{
    add():void{
      setTimeout(()=>{

        this.opcount++
      },2000)
    }
  }
})
